home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / QuickTime / QuickTime 3 Interfaces & Libs / QTDevWin / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  2.2 KB  |  101 lines  |  [TEXT/dosa]

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1988-1993, 1995, 1997-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __CRMSERIALDEVICES__
  19. #define __CRMSERIALDEVICES__
  20.  
  21. #ifndef __MACTYPES__
  22. #include <MacTypes.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47.  
  48. enum {
  49.                                                                 /*     for the crmDeviceType field of the CRMRec data structure    */
  50.     crmSerialDevice                = 1,                            /*    version of the CRMSerialRecord below    */
  51.     curCRMSerRecVers            = 1
  52. };
  53.  
  54. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  55.  
  56. struct CRMIconRecord {
  57.     long                             oldIcon[32];                /* ICN#    */
  58.     long                             oldMask[32];
  59.     Handle                             theSuite;                    /* Handle to an IconSuite    */
  60.     long                             reserved;
  61. };
  62. typedef struct CRMIconRecord            CRMIconRecord;
  63.  
  64. typedef CRMIconRecord *                    CRMIconPtr;
  65. typedef CRMIconPtr *                    CRMIconHandle;
  66.  
  67. struct CRMSerialRecord {
  68.     short                             version;
  69.     StringHandle                     inputDriverName;
  70.     StringHandle                     outputDriverName;
  71.     StringHandle                     name;
  72.     CRMIconHandle                     deviceIcon;
  73.     long                             ratedSpeed;
  74.     long                             maxSpeed;
  75.     long                             reserved;
  76. };
  77. typedef struct CRMSerialRecord            CRMSerialRecord;
  78.  
  79. typedef CRMSerialRecord *                CRMSerialPtr;
  80.  
  81. #if PRAGMA_STRUCT_ALIGN
  82.     #pragma options align=reset
  83. #elif PRAGMA_STRUCT_PACKPUSH
  84.     #pragma pack(pop)
  85. #elif PRAGMA_STRUCT_PACK
  86.     #pragma pack()
  87. #endif
  88.  
  89. #ifdef PRAGMA_IMPORT_OFF
  90. #pragma import off
  91. #elif PRAGMA_IMPORT
  92. #pragma import reset
  93. #endif
  94.  
  95. #ifdef __cplusplus
  96. }
  97. #endif
  98.  
  99. #endif /* __CRMSERIALDEVICES__ */
  100.  
  101.